<?php
/*
 * MiniMe - a minimalistic OStatus complient microblogging tool
 * Copyright (C) 2010, Tuomas Koski - koski.tuomas@gmail.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * @author     Tuomas Koski <koski.tuomas@gmail.com>
 * @copyright  Tuomas Koski
 * @license    http://www.gnu.org/licenses/lgpl.txt
 */

//$basedir = dirname(__FILE__);
//
//require_once $basedir . '/../../../../classes/minime/user/storer.php';
//
//require_once 'vfsStream/vfsStream.php';
//
//class Minime_User_StorerTest extends PHPUnit_Framework_TestCase {
//    
//    /*
//     * THIS DOES NOT WORK! I DON'T KNOW HOW TO WRITE TO THE VIRTUAL FILE SYSTEM?
//     */
//    
//    public function testConstructorOfMinimeUserStorerObject() {
//        
//        $config = "[datastorage]
//filepath = vfs://srv/datastorage";
//        
//        # Register our virtual file system
//        vfsStreamWrapper::register();
//        
//        # Create a new root directory
//        $root = new vfsStreamDirectory('srv');
//        $root->addChild(new vfsStreamDirectory('datastorage'));
//        $root->getChild('datastorage')->addChild(new vfsStreamDirectory('tuomas'));
//        $root->getChild('datastorage')->getChild('tuomas')->addChild(vfsStream::newFile('user.xml')->withContent($content));
//        vfsStreamWrapper::setRoot($root);
//       
//        $conf['datastore']['filepath'] = vfsStream::url('srv/datastorage');
//        
//        $object = new Minime_User_Storer($conf);
//        $this->assertEquals("Minime_User_Storer", get_class($object));
//    }
//
//}